#pragma once

#include "Material.h"

class MaterialLibrary
{
public:
	MaterialLibrary();
	~MaterialLibrary();

	// Adds a material to the libray and returns 
	int Add(Material* material);

	// Removes a material from the libray
	void Remove(Material* material);

	// Get the material from the library given the Material ID
	Material* GetMaterial(int MaterialID);




private:


	 // Dynamic Array of materials
	 Material** materials;

	 // The number of Items in the array
	 int count;

	 // The current size of the Items array, if the Count grows close the the 
	 // size, then the array should be reallocated to be larger to be ready to 
	 // insert more items, the size should grow 10% of the current size.
	 int size;


};



